<div id="access" role="navigation">
	<div class="menu">
		<ul>
			<li class="page_item"><a href="{$url}admin/">Home</a></li>
		{loop="main_module"}
			<li class="page_item"><a href="{$value.link}">{$value.title}</a>
				<ul class='children'>
				{loop="sub_module"}
					{if="$value2.module==$value1.module"}
						<li class="page_item"><a href="{$value2.link}">{$value2.title}</a></li>
					{/if}
				{/loop}
				</ul>
			</li>
		{/loop}
			<li style = "float:right"><a href="{$url}admin/logout.php">Logout</a></li>
		</ul>
	</div>
</div>

<div class = "clear"></div>